package com.game.worm.mobile.view.model;

import com.dx.as.http.IHttpListener;
import com.game.worm.mobile.view.http.IHttpServices;

import java.util.Map;

/**
 * Created by d_xxiang on 2018/3/27.
 */

public class Model extends IHttpListener implements IModelInterface{

    @Override
    public int getHomeData() {
        return 0;
    }

    public int doLogin(){
        return 0;
    }

    @Override
    public int getListData() {
        return 0;
    }

    @Override
    public int getSearchData() {
        return 0;
    }

    @Override
    public int getMineData() {
        return 0;
    }

    @Override
    public int getDiscoveryData() {
        return 0;
    }

    @Override
    public void onResponse(Object response, int flg) {
        super.onResponse(response,flg);
    }

    @Override
    public void onFailure(Throwable t) {
        super.onFailure(t);
    }

    @Override
    public void onFilure(int code, String errorMsg) {
        super.onFilure(code, errorMsg);
    }

    public int doHttp(String url, Map<String,Object> map){
        int key = url.hashCode();
        //根据url的hashCode 判断是什么请求
//        if (key == IHttpServices.login.hashCode()){
//            return doLogin();
//        }
        return 0;
    }
}
